include $(top_srcdir)/common.mk

pkgincludedir = $(includedir)/ola/usbpro
lib_LTLIBRARIES = libolausbproconf.la
nodist_pkginclude_HEADERS = UsbProConfigMessages.pb.h
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libolausbproconf.pc

BUILT_SOURCES = UsbProConfigMessages.pb.cc UsbProConfigMessages.pb.h

nodist_libolausbproconf_la_SOURCES = UsbProConfigMessages.pb.cc
libolausbproconf_la_LIBADD = $(libprotobuf_LIBS)

EXTRA_DIST = UsbProConfigMessages.proto

UsbProConfigMessages.pb.cc UsbProConfigMessages.pb.h: UsbProConfigMessages.proto
	$(PROTOC) --cpp_out ./ UsbProConfigMessages.proto

clean-local:
	rm -f *.pb.{h,cc}
